package me.spring.cloud.common.components.rpc.response.header;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author luffy
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppRespHeader<C> extends CommonRespHeader<C> implements RespHeader<C> {

  /** 特殊信息 */
  private Object memo;

  public AppRespHeader(C code, String message, Object memo) {
    super(code, message);
    this.memo = memo;
  }

  public AppRespHeader(C code, String message, String chainId, Object memo) {
    super(code, message, chainId);
    this.memo = memo;
  }
}
